package com.itheima.service.impl;

import com.itheima.domain.entity.ShopType;
import com.itheima.mapper.ShopTypeMapper;
import com.itheima.service.IShopTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 坤哥
 * @since 2025-10-06
 */
@Service
public class ShopTypeServiceImpl extends ServiceImpl<ShopTypeMapper, ShopType> implements IShopTypeService {
    /**
     * 获取店铺类型
     */
    @Override
    public List<ShopType> getShopTypeList() {
        return lambdaQuery().orderByAsc(ShopType::getSort).list();
    }
}
